package com.kma.summer2012.client.events.manager;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 13.02.13
 * Time: 15:04
 * To change this template use File | Settings | File Templates.
 */
public class ManageWorksEvent extends GwtEvent<ManageWorksEvent.ManageWorksEventHandler> {
    public interface ManageWorksEventHandler extends EventHandler {
        void onManageWorks(ManageWorksEvent event);
    }

    private static Type<ManageWorksEventHandler> TYPE = new Type<ManageWorksEventHandler>();

    @Override
    public Type<ManageWorksEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<ManageWorksEventHandler> getType() {
        return TYPE;
    }


    @Override
    protected void dispatch(ManageWorksEventHandler manageWorksEventHandler) {
        manageWorksEventHandler.onManageWorks(this);
    }


}
